projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e90d63
)
Support new pango attributes
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 24 Aug 2021 16:48:40 +0000
(12:48 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 25 Aug 2021 18:57:13 +0000
(14:57 -0400)
Support new Pango attributes for segmentation
in GtkBuilder.
gtk/gtkpango.c
patch
|
blob
|
history
diff --git
a/gtk/gtkpango.c
b/gtk/gtkpango.c
index 0fa65a3220338a829b34a7cf7486ec19171b84d8..94207eb5cc1985783a10edfc3c26db648bae80c7 100644
(file)
--- a/
gtk/gtkpango.c
+++ b/
gtk/gtkpango.c
@@
-261,6
+261,12
@@
attribute_from_text (GtkBuilder *builder,
if (gtk_builder_value_from_string_type (builder, PANGO_TYPE_TEXT_TRANSFORM, value, &val, error))
attribute = pango_attr_text_transform_new (g_value_get_enum (&val));
break;
+ case PANGO_ATTR_WORD:
+ attribute = pango_attr_word_new ();
+ break;
+ case PANGO_ATTR_SENTENCE:
+ attribute = pango_attr_sentence_new ();
+ break;
case PANGO_ATTR_INVALID:
default:
break;